// 1. 算术运算符
let a = 10, b = 3;
console.log(a + b, a - b, a * b, a / b, a % b, a ** b); // 13, 7, 30, 3.33, 1, 1000

// 2. 比较运算符
console.log(a == "10", a === "10", a != b, a > b); // true, false, true, true

// 3. 逻辑运算符
console.log(true && false, true || false, !true); // false, true, false

// 4. 条件语句
let score = 85;
if (score >= 90) {
    console.log("优秀");
} else if (score >= 60) {
    console.log("合格");
} else {
    console.log("不合格");
}

// 5. 循环结构
for (let i = 1; i <= 5; i++) {
    console.log("循环次数:", i);
}

let count = 3;
while (count > 0) {
    console.log("倒计时:", count);
    count--;
}
